package com.mybatispluslambda.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "user")
public class User extends Model<User> {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private String name;
    private Integer age;
    private String email;
    @TableLogic(value = "0", delval = "1")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer delFlag;
}